package zuoye_1;

public class zuoye_5 {
	public static void main(String[] args){
		int ge,shi,bai,qian,wan;
		for(int i=10000;i<=99999;i++)
		{
			ge=i%10;
			shi=i/10%10;
			bai=i/100%10;
			qian=i/1000%10;
			wan=i/10000%10;
			if(ge==wan&&shi==qian)
				System.out.println(i);;
		}
	}
}
